﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyClubSrhForm.aspx.cs" Inherits="App_Input_HappyClubSrhForm"
    Title="亲和俱乐部查询" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6" style="height: 15px">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td style=" background: #ffffff; width: 282px;"></td>
                        <td style=" background: #ffffff; width: 131px;" class="list_data_bg_left" nowrap>俱乐部名称：</td>
                        <td style=" background: #ffffff; width: 184px;" align="left">&nbsp;<asp:TextBox ID="txtInterestName"
                            runat="server" MaxLength="6" Width="89px"></asp:TextBox></td>
                        <td style="background: #ffffff; width: 111px;" class="list_data_bg_left" nowrap>俱乐部分类：</td>
                        <td align="left" style="width: 25%;background: #ffffff">&nbsp;<asp:DropDownList ID="dropInterestType"
                            runat="server" Width="90px" DataTextField="Content" DataValueField="DictNo">
                        </asp:DropDownList></td>
                        <td style=" background: #ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background: #ffffff; width: 282px;"></td>
                        <td align="left" style="background: #ffffff; width: 131px;" class="list_data_bg_left" nowrap>部长姓名：</td>
                        <td align="left" style="background: #ffffff; width: 184px;" nowrap>&nbsp;<asp:TextBox ID="txtLeadName" runat="server"
                            MaxLength="6" Width="89px"></asp:TextBox></td>
                        <td style="background: #ffffff; width: 111px;" class="list_data_bg_left" nowrap></td>
                        <td align="left" style="background: #ffffff"></td>
                        <td align="right" style="background: #ffffff"></td>
                    </tr>
                </table>
            </td>
        </tr>
            <tr>
                <td style="height: 19px"></td>
            </tr>
        <tr>
            <td align="center" style="height: 22px"><asp:Button ID="btnNew" runat="server" Text=" 新 建 " CssClass="button" OnClick="btnNew_Click" />
                &nbsp;<asp:Button ID="search" runat="server" Text=" 检 索 " CssClass="button" OnClick="search_Click" />&nbsp;</td>
        </tr>
    </table>
    <div id="Div1">
        <table width="100%">
            <tr>
                <td align="left" style="width: 100%">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td >
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table"  BorderStyle="Solid" OnPageIndexChanging="GridView1_PageIndexChanging"
                        BorderWidth="3px" HorizontalAlign="Center" Width="100%">
                        <Columns>
                           
                            <asp:BoundField HeaderText="俱乐部名称" DataField="InterestName">
                                <ItemStyle CssClass="GridView_item_left" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="俱乐部分类" DataField="InterestTypeName">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="部长姓名" DataField="LeadName">
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="说明" DataField="Memo">
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="成立日期" DataField="BeginDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            
                            <asp:TemplateField HeaderText="详细">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%"/>
                                <ItemTemplate>
                                    &nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/info.gif" ToolTip="详细" 
                                    CommandName="DETAIL" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyClubBean)Container.DataItem).InterestId %>"/>
                                    
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="成员">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" Width="5%"/>
                                <ItemTemplate>
                                    &nbsp; &nbsp;
                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/info.gif" ToolTip="成员" 
                                    CommandName="MEMBER" OnCommand="ImageButton_Command" CommandArgument="<%# ((HappyClubBean)Container.DataItem).InterestId %>"/>
                                    
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                                                        
                         
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
